ICSE X/ICSE X Computer Applications MCQ Question Answer Sample Test,Sample questions

Question:
  The Java program use _______________ to find and fix bugs.

1.JDK

2.JRE

3.JVM

4.None of these

Posted Date:-2022-01-19 11:48:27


Question:
 public void (d) ____________
System.out.println(admno);
System.out.println(sname);
System.out.println(eng);
System.out.println(math);
System.out.println(science);
System.out.println(total);
public void takedata(int a, String n, int e, int m, ints)
admno= a;
sname=n;
eng e
math= m;
science= s;
total= gettotal();

1.getdata

2.showdata

3.gettotal

Posted Date:-2022-01-19 13:15:06


Question:
 String grade- (mark>-90)? "A" (mark 80)?/B:C

1.A

2.B

3.C

Posted Date:-2022-01-19 12:28:33


Question:
 string is a non - primitive data type

1.True

2.False

Posted Date:-2022-01-19 12:01:15


Question:
 y=(++y* (y++ +5)); - [y=10]

1.176

2.150

3.166

4.156

Posted Date:-2022-01-19 12:25:30


Question:
!(2<3&&40>60 )

1.True

2.False

Posted Date:-2022-01-19 12:02:46


Question:
A collection of related classes and interfaces having common functionality.
 

1.Literals

2.Package

3.Object

Posted Date:-2022-01-19 11:51:45


Question:
Choose the odd one	

1.return

2.break

3.continue

4.System.exit(0)

Posted Date:-2022-01-19 12:13:19


Question:
Choose the odd one	

1.byte

2.int

3.char

4.String

Posted Date:-2022-01-19 12:14:27


Question:
Choose the odd one

1.for

2.while

3.do

4.far

Posted Date:-2022-01-19 12:09:18


Question:
Choose the odd one

1.>=

2.==

3.&&

4.<=

Posted Date:-2022-01-19 12:10:02


Question:
Choose the odd one

1.&

2.<<

3.>>

4.==

Posted Date:-2022-01-19 12:16:00


Question:
class (a) _____________ .

1.stu

2.student

3.Student

Posted Date:-2022-01-19 12:41:22


Question:
class (a)_____________
{
int product code, pack size, product price
String flavour, pack_type;

1.Fruitjuice

2.input

3.discount

Posted Date:-2022-01-19 13:29:09


Question:
class test
{ 
long factorial(int n)
}
long f = (a)_______________;

1.1.0

2.0.0

3.1

Posted Date:-2022-01-19 13:48:14


Question:
Class variable that is available to the entire class.

1.local variable

2.class variable

3.instance variable

Posted Date:-2022-01-19 11:54:55


Question:
Defining two or more methods in the same class with same name.

1.Constructor over loading

2.Function overloading

3.Static function

Posted Date:-2022-01-19 11:57:27


Question:
f = (c)_____________*i;
{
return f
}

1.i

2.f

3.n

Posted Date:-2022-01-19 13:53:23


Question:
float (C)_____________= eng +math +science;
return t;

1.t

2.total

3.T

Posted Date:-2022-01-19 13:12:08


Question:
for (int i = 1 (b)_______________; i++)

1.i=n

2.i>=n

3.i<=n

Posted Date:-2022-01-19 13:51:40


Question:
for (int m-5; m-20; m+-5)
if(m%3-0)
break;
396 61 Sample Question Papers (ICSE-Class X)
else if (m%5-0)
System.out.print(m)
continue;

1.Loop is executed 3 times and output is 5, 10, 15

2.Loop is executed 2 times and output is 5, 10

3.Loop is executed 4 times and output is 5, 10, 15, 20

Posted Date:-2022-01-19 12:34:28


Question:
for (int m-5; m-20; m+-5)
if(m%3-0)
break;
396 61 Sample Question Papers (ICSE-Class X)
else if (m%5-0)
System.out.print(m)
continue;

1.Loop is executed 3 times and output is 5, 10, 15

2.Loop is executed 2 times and output is 5, 10

3.Loop is executed 4 times and output is 5, 10, 15, 20

Posted Date:-2022-01-19 12:34:28


Question:
For loop is doubly bounded iterative statement.

1.True

2.False

Posted Date:-2022-01-19 12:07:34


Question:
Functions can't return objects.

1.True

2.False

Posted Date:-2022-01-19 12:03:30


Question:
if (a> b)
System.out.println(a+b);
else
System.out.println (a"b);
when a =5 and b =7

1.12, 35

2.35

3.35, 12

Posted Date:-2022-01-19 12:27:27


Question:
In java the types of constructors are

1.parameterized

2.non parameterized

3.default

4.All of above

Posted Date:-2022-01-19 14:01:56


Question:
Java language was initially caled Oak.

1.True

2.False

Posted Date:-2022-01-19 12:06:48


Question:
Memory can be initialized for storing objects by ?

1.Constructors

2.Destructors

3.All of above

Posted Date:-2022-01-19 14:03:28


Question:
Name of method for constructor is similar to

1.package

2.class

3.object

Posted Date:-2022-01-19 14:02:47


Question:
Name the type of error in the statement given below:
int r-100/0;

1.Syntax

2.Runtime

3.Logical

4.Warning

Posted Date:-2022-01-19 11:33:28


Question:
product price =(d) _________ -10;

1.Discount

2.product price

3.pack size

Posted Date:-2022-01-19 13:37:43


Question:
public (b)________________
product_code- 0
pack size -0;
product _price= 0;
flavour=""
pack type"",
void input() throws IOFxception
BufferedReaderbr- new BufferedReaderinew nputstream Reader(System.in)
System.out println(" Enter Product IDetails)
product code Integer parselnt(hrreadlme
flavor= br.readLine0:
pack type-br.readLine()
pack size- Integer.parselnt(br.readLine();
product price Integer.parselnt(br.readLine)
void ()

1.Fruit

2.Fruitjuce

3.fruitjuce

Posted Date:-2022-01-19 13:34:04


Question:
public class stud
public static void main(String []  args)
new student()
student (e)____________

1.Std

2.std 1

3.student

Posted Date:-2022-01-19 13:16:35


Question:
std1.(f) (101, "RAM", 30, 48, 40);
std1.showdata();
 

1.takendata

2.showdata

3.getdata

Posted Date:-2022-01-19 13:18:22


Question:
switch (var)
{
case 'A: System.out.printin("good"
case 'B:System.out.println ("better");
break;
case 'C:System.out.println("best");
break;
default: System.out.printin(°Poor );
}
when var 'a'

1.Good

2.Better

3.Poor

Posted Date:-2022-01-19 12:30:12


Question:
System.out.printin("Factorial ="+(d)_________________);

1.f

2.i

3.fact

Posted Date:-2022-01-19 13:54:24


Question:
System.out.println(product_code +" "+flavour+" "+pack_type+
+(f) +"" +product
price);

1.Packsize

2.pack_size

3.Pack_size

Posted Date:-2022-01-19 13:41:07


Question:
The function that modifies its parameters

1.Virutal function

2.Pure function

3.impure unction

Posted Date:-2022-01-19 11:55:57


Question:
The number of bytes occupied by double data type is ____________byte/s

1.4

2.8

3.2

4.None of these

Posted Date:-2022-01-19 11:37:51


Question:
The region within which a variable/piece of code is accessible.

1.Area of variable

2.Place of variable

3.Scope of variable

Posted Date:-2022-01-19 11:58:38


Question:
void (c)_____________
 
 

1.Discount

2.product_price

3.pack_size

Posted Date:-2022-01-19 13:35:30


Question:
void (e)_______________()

1.Display

2.discount

3.input

Posted Date:-2022-01-19 13:39:51


Question:
What is constructor?

1.A bloc of code similar to method with same name as its class.

2.A bloc of code to create object

3.A bloc of code to find the class

Posted Date:-2022-01-19 14:01:08


Question:
What is the final value stored in variable x ?
double a-8.35, double b 14.74
double x= Math.abs(Math.max(a, b));

1.14.0

2.15.0

3.16.0

4.14.74

Posted Date:-2022-01-19 11:32:21


Question:
Which of the following are valid KEYWORD?
(i) Try   (ii) Throw  (iii) extends   (iv)  catch

1.(i) & (iii)

2.(i) (ii) & (iii)

3.All of the above

4.None of the above

Posted Date:-2022-01-19 11:25:41


Question:
Which of the following keyword is not used to specify the accessible feature of the derived class?

1.private

2.public

3.new

4.protected

Posted Date:-2022-01-19 11:31:16


Question:
Which one is not correct relational operator?
(i)  ==  (ii)  =  (iii)  !=       (iv) <>

1.(i), (iii)

2.(ii)

3.(iv),(ii)

4.(i) (ii) (iii)

Posted Date:-2022-01-19 11:28:54


Question:
__________access specifier gives the most accessibility.

1.Public

2.Private

3.Pestected

4.None of these

Posted Date:-2022-01-19 11:43:52


Question:
____________has same name as of class.

1.data

2.object

3.Sub class

4.Constructor

Posted Date:-2022-01-19 11:45:10


Question:
__________________is the collection of related classes and interfaces having common functionality.

1.literal

2.Polymorphism

3.Array

4.Polymorphism

Posted Date:-2022-01-19 11:36:33


Question:
{
private intadmno
private String sname;
private float eng, math, science, total;
private float (b)_____________.

1.getdata

2.showdata

3.gettotal

Posted Date:-2022-01-19 12:42:53


More MCQS

  1. ICSE Class 10th Hindi MCQ question answer
  2. ICSE Class 10th Hindi Sahitya Sagar Short Stories MCQ Question Answers
  3. ICSE Class 10th-Hindi MCQ question & answer
  4. ICSE Class 10th Hindi Sahitya Sagar Poem MCQ Question Answers
  5. ICSE Class 10th Hindi Naya Rasta MCQ Question Answers
  6. ICSE Class 10th Hindi Ekanki Sanchay MCQ Question Answers
  7. ICSE Board Class 10th Hindi MCQ Question Answers
  8. ICSE Board Class 10th Hindi Sahitya Sagar Short Stories MCQ Question Answers
  9. ICSE Board Class 10th Hindi Sahitya Sagar Poem MCQ Question Answers
  10. ICSE Board Class 10th Hindi [ Naya Rasta ] MCQ Question Answers
  11. ICSE Board Class 10th Hindi [ Ekanki Sanchay ] MCQ Question Answers
  12. ICSE Board Class 10th Hindi Sample Paper 2 MCQ Question Answers
  13. ICSE Board Class 10th Hindi Sample Paper 2 [ Sahitya Sagar Short Stories ] MCQ Question Answers
  14. ICSE Board Class 10th Hindi Sample Paper 2 [ Sahitya Sagar Poems ] MCQ Question Answers
  15. ICSE Board Class 10th Hindi Sample Paper 2 [ Naya Rasta ] MCQ Question Answers
  16. ICSE Board Class 10th Hindi Sample Paper 2 [ Ekanki Sanchay ] MCQ Question Answers
  17. ICSE Board Class 10th Hindi Sample Paper 3 MCQ Question Answers
  18. ICSE Board Class 10th Hindi Sample Paper 3 [ Sahita Sagar-Short Stories ] MCQ Question Answers
  19. ICSE Board Hindi sample paper of class 10th [ Naya Rasta ] MCQ
  20. ICSE Board Class 10th Hindi Sample Paper 3 Sahitya Sagar Poem MCQ Question Answers
  21. ICSE 10th Class MCQ Question Answers [ Sahitya Sagar- Short Stories]
  22. ICSE Board Hindi 10th class MCQ Question Answers [ Ekanki Sanchay ]
  23. ICSE Class 10th Hindi MCQ Question answers
  24. ICSE Class 10 Hindi MCQ Question Answers
  25. ICSE 10th Class [ Sathiya Sagar poem ] MCQ Question Answer
  26. ICSE 10th class MCQ Question answers (Naya Rasta)
  27. ICSE 10th class MCQ Question Answers Ekanki Sanchay
  28. ICSE 10th Class English 1st MCQ Question Answers
  29. ICSE 10th class English Fill in the blanks
  30. ICSE 10th class English MCQs With Answers
  31. ICSE 10th class English 1st Fill in the blanks
  32. ICSE class 10th English MCQ Questions Answers
  33. ICSE 10th class English Language MCQ Question Answer
  34. ICSE 10th Class English Language Fill in the blanks
  35. ICSE 10th class English Language [ Choose the correct option ]
  36. ICSE class 10th English 1st [ Choose the correct answer ]
  37. ICSE Board 10th class English Language MCQ Question Answers
  38. ICSE 10th class English 1st [ Fill in the blanks ]
  39. ICSE class 10th English Language [ Choose the correct option ]
  40. ICSE 10th class English Language [ Choose the correct Answers ]
  41. English Language MCQ Question Answers [ ICSE 10th Class ]
  42. English Language Fill in the blanks [ ICSE Board Class 10th ]
  43. ICSE 10th class [ Choose the correct option ] English Language
  44. ICSE 10th class [ Choose the correct answer ] English Language
  45. ICSE 10th Class English Literature MCQ
  46. ICSE 10th class English Literature MCQ Questions Answers
  47. ICSE 10th class English Literature MCQ Question Answers
  48. ICSE Board class 10th MCQ Question Answers [ English Literature ]
  49. ICSE 10th class English Literature Questions Answers
  50. ICSE 10th class English Literature [ MCQ Question Answers ]
  51. ICSE Class 10 MCQ Question Answer English Literature
  52. ICSE X English Literature MCQ Question Answer
  53. ICSE X English Literature [ Choose the correct Answers ]
  54. ICSE X English Literature [ Choose the correct Answers ]
  55. ICSE X English 2nd MCQ Question Answers
  56. ICSE X English 2nd [Choose the correct Answers]
  57. ICSE X English 2nd [Choose the correct Answers]
  58. ICSE 10th English 2nd MCQ Question Answers
  59. ICSE 10th English 2nd [ Choose the correct Answers ]
  60. ICSE 10th class English 2nd [ Choose the correct Answers ]
  61. ICSE 10th class History and Civics MCQ Question Answers
  62. ICSE X History and Civics MCQ Question Answers
  63. ICSE X History and Civics [ MCQ Question Answers ]
  64. ICSE 10th History and Civics MCQ Question Answers
  65. ICSE class 10th History and Civics Question Answers
  66. ICSE class 10th History and Civics [ MCQ Question Answers ]
  67. ICSE 10th Class History and Civics [ MCQ Question Answers ]
  68. ICSE 10th Class History and Civics ( MCQ Question Answers )
  69. ICSE 10th History and Civics ( MCQ Question Answers )
  70. ICSE 10th History and Civics MCQ Question Answers with Images
  71. ICSE 10th History and Civics MCQs with Answers
  72. ICSE 10th History and Civics (MCQs with Answers)
  73. ICSE 10th Geography ( MCQ Question Answers )
  74. ICSE 10th Geography (Choose the correct Answer)
  75. ICSE 10th class Geography ( MCQ Question Answers )
  76. ICSE X Geography MCQ Question Answers
  77. ICSE X Geography MCQ Question Answers with Map
  78. ICSE X class Geography MCQ Question Answers
  79. ICSE X Geography [ MCQ Question Answers with Map ]
  80. ICSE 10th class Geography MCQ Question Answers
  81. ICSE X Geography [ MCQ Question Answer with Map ]
  82. ICSE 10th class Geography [ MCQ Question Answer ]
  83. ICSE X Geography MCQ Question Answer with Map
  84. ICSE 10th class Geography MCQ Question Answer
  85. ICSE X mathematics [ MCQ Question Answer ]
  86. ICSE X mathematics MCQ Question Answer
  87. ICSE 10th Class mathematics MCQ Question Answer
  88. ICSE 10th Class Mathematics ( MCQ Question Answer )
  89. ICSE X Class Mathematics ( MCQ Question Answer )
  90. ICSE X Class mathematics [ MCQ Question Answer ]
  91. ICSE X Physics MCQ Question Answer
  92. ICSE X Physics [ MCQ Question Answer ]
  93. ICSE 10th class Physics [ MCQ Question Answer ]
  94. ICSE 10th Physics [ MCQ Question Answer ]
  95. ICSE X Chemistry [ MCQ Question Answer ]
  96. ICSE X Chemistry MCQ Question Answer
  97. ICSE 10th Class Chemistry MCQ Question Answer
  98. ICSE X Chemistry [ MCQ Question Answer ]
  99. ICSE 10th class Chemistry [ MCQ Question Answer ]
  100. ICSE X Biology [ MCQ Question Answer ]
  101. ICSE 10th class Biology [ MCQ Question Answer ]
  102. ICSE X Biology MCQ Question Answer
  103. ICSE 10th Class Biology MCQ Question Answer
  104. ICSE 10th Class Biology [ MCQ Question Answer ]
  105. ICSE Class 10th Computer Applications MCQ Question Answers
  106. ICSE Class 10th Computer Applications [ MCQ Question Answers ]
  107. ICSE X Computer Applications [ MCQ Question Answer ]
  108. ICSE X Computer Applications MCQ Question Answer
  109. ICSE Class 10th Computer Applications (MCQ Question Answer)
  110. ICSE Class 10th Physical Education (MCQ Question Answer)
  111. ICSE X Physical Education MCQ Question Answer
  112. ICSE Class 10th Economics (MCQ Question Answer)
  113. ICSE Class 10th Economics MCQ Question Answer
  114. ICSE Class 10th Commercial Studies (MCQ Question Answer)
  115. ICSE Class 10th Commercial Studies [MCQ Question Answer]
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!